﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MyMainSite.Models.Admin.ProjectModel>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="contentHeader" runat="server">

	<script type="text/javascript">

		$(document).ready(function () {

			$("#buttonBack").click(function () {

				window.location = "/admin/projects/";
			});

			$("#buttonAddBuild").click(function () {

				window.location = "/admin/newprojectbuild/?projectId=<%: this.Model.ProjectId %>";				
			});
		});

	</script>

</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Project - <%: this.Model.Name %></h1>

	<% Html.RenderPartial("ProjectBuilds", this.Model.ProjectBuilds); %>

	<input type="button" id="buttonAddBuild" value="Add Build" />

	<% Html.RenderPartial("DeveloperComments", this.Model.DeveloperComments); %>

	<p>
		<input type="button" id="buttonBack" value="Back" />
	</p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="contentLeftMenu" runat="server">
</asp:Content>
